<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>JS 数值 转换</h1>
	<hr>
	<script>
	//数字环境
	console.log(100-false);
	console.log(100/true);
	console.log(100*'50g');
	//字串环境
	console.log(100+'100');
	console.log(100+Numder('100'));

	//布尔环境
	//if() ->>>t/f
	//
	//无穷大
	console.log(100/0);//Infinity
	console.log(-100/0);//-Infinity
	//精度问题
	console.log(0.1+0.2);
	console.log((0.1+0.2).toFixed(2));

	</script>
</body>
</html>